package com.jetpackframework.applicationdelegate;

import android.os.Handler;

import com.jetpackframework.Application;

import java.lang.ref.SoftReference;

public abstract class BaseApplicationDelegate implements ApplicationDelegate{
    private ApplicationHandler handler;
    protected Application application;

    public Handler getHandler(){
        return handler;
    }
    public void init(Application application){
        this.application = application;
        handler = new ApplicationHandler(new SoftReference(this));
    }
    public String getPackageName(){
        return application.getPackageName();
    }
}
